#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    char* who = getenv("USER");
    if(strcmp(who, "root") != 0)
    {
        printf("%s, 是非法用户\n", who);
        return 1;
    }
    printf("my command!\n");
    printf("my command!\n");
    printf("my command!\n");
    printf("my command!\n");
    printf("my command!\n");
    printf("my command!\n");

     // printf("PATH: %s\n", getenv("PATH"));
     // printf("USER: %s\n", getenv("USER"));
    return 0;
}
